package com.dongdongshop.service;

import com.dongdongshop.pojo.Cart;

import java.util.List;

public interface CartService {
    List<Cart> insertCartList(List<Cart> carts, Long itemId, Integer num);

    void insertCartListToRedis(String userName, List<Cart> carts);

    List<Cart> findCartFormRedis(String userName);

    List<Cart> mergeCartList(List<Cart> carts1, List<Cart> carts2);

}
